'''
Created on Aug 17, 2010

@author: Tom Smith
'''

import time


class Timing(object):
    '''
    classdocs
    '''
    time_taken = []
    initial_time = ''
    start_time = ''


    def __init__(self):
        '''
        Constructor
        '''
        self.initial_time = time.time()
    
    def startTimer(self):
        self.start_time = time.time()
        
    def stopTimer(self):
        end_time = time.time()
        elapsed = end_time - self.start_time
        self.time_taken.append(elapsed)
        self.printTimes()
        
    def printTimes(self):
        print self.time_taken
        print "Total Time: %s" % (str(time.time() - self.initial_time))
    
        